# ============================================================================
#	ACLb`f
# ============================================================================
include	/pic/pic.mak

# ----------------------------------------------------------------------------
#	Ώۃt@C
# ----------------------------------------------------------------------------
OBJS	=	eye eye2

CHRS	=	${addsuffix .chr,${OBJS}}
PALS	=	${addsuffix .pal,${OBJS}}
SPTS	=	${addsuffix .spt,${OBJS}}
# ----------------------------------------------------------------------------
#	ŏI^[Qbg
# ----------------------------------------------------------------------------
all:	${CHRS} ${PALS} ${SPTS}

clean:
	${cmdsplit -rm %,60,${addprefix ${CHR}\,${CHRS}}}
	${cmdsplit -rm %,60,${addprefix ${PAL}\,${PALS}}}
	${cmdsplit -rm %,60,${addprefix ${SPT}\,${SPTS}}}
# ----------------------------------------------------------------------------
#	IȐK
# ----------------------------------------------------------------------------
eye.spt:	eye.cab
	echo  include ${GSYS}\objtbl.h>$0.s
	cabtbl -t -f1 -x64 -y64 $^ >>$0.s
	as -o$0.o $0.s
	lk -b${SPT}\${@F} /cseg:0,0 $0.o
eye2.spt:	eye2.cab
	echo  include ${GSYS}\objtbl.h>$0.s
	cabtbl -t -f1 -x64 -y64 $^ >>$0.s
	as -o$0.o $0.s
	lk -b${SPT}\${@F} /cseg:0,0 $0.o
